@echo off
echo [INFO] ------------------------------------------------------------------------
echo [INFO] update and package test env
echo [INFO] CurPath=%cd%
echo [INFO] ------------------------------------------------------------------------

if exist timingbar-edu-webapp\src\main\webapp\WEB-INF\lib rd /s /q timingbar-edu-webapp\src\main\webapp\WEB-INF\lib
if exist timingbar-edu-webapp\src\main\webapp\WEB-INF\classes rd /s /q timingbar-edu-webapp\src\main\webapp\WEB-INF\classes
if exist timingbar-edu-webapp\target rd /s /q timingbar-edu-webapp\target
:: call mvn install -DskipTests
call mvn -X clean package -Dmaven.test.skip=true -Denv=test -npu

cd ./timingbar-edu-static
gulp
cd ../
pause